<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<link rel="stylesheet" type="text/css" href="../../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
  <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
  <title>学术</title>
  <style>
		html, body {width: 100%;min-height: 100%;background: #f0f0f0;}

    iframe {
      width: 100%;
      height: 100vh;
      outline: none;
      border: none;
    }
	</style>
</head>
<body>
  <div id="app" v-cloak>
    <iframe :src="cxSrc"></iframe>
  </div>
</body>
<script src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/utils.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script>
    function goback () {
      api.closeWin({name:api.pageParam.name});
    }
apiready = function() {
  var app = new Vue({
    el: '#app',
    data: {
      cxSrc: ''
    },
    created: function() {
      var $_this = this;
       api.ajax({
        url: window.Url.chaoxing + $api.getStorage('account'),
          timeout: 300,
        }, function(ret, err) {
            if (ret) {
              $_this.cxSrc = 'https://gtqikan.chaoxing.com/mobile/index?sn=' + ret.sn
            } else {
                api.alert({ msg: JSON.stringify(err) });
            }
        })
    },
    methods: {
      openDetail: function (type, title, id) {
        api.openWin({
          name: 'index_detail_' + type,
          pageParam: {
            name: 'index_detail_' + type,
            title: title,
            id: id
          },
          url: './first_header.html',
          delay: 200,
          bounces: false
        });
      }
    }
  })
}

</script>
</html>
